package ClassAndObject.GouZaoMethod;

public class DemoJavaBean {
    public static void main(String[] args) {
        JavaBean jb = new JavaBean();
        jb.setName("迪丽热巴");
        jb.setAge(20);
        System.out.println(jb.getName()+":"+jb.getAge());

        JavaBean jb1 = new JavaBean("古力娜扎",21);
        System.out.println(jb1.getName()+";"+jb1.getAge());
        jb1.setAge(29);
        System.out.println(jb1.getName()+";"+jb1.getAge());
    }
}
